package com.letfox.user.service.relation.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.user.dao.relation.AccountUserDao;
import com.letfox.user.model.relation.UAccountUser;
import com.letfox.user.service.relation.AccountUserService;

@Service
public class AccountUserServiceImpl implements AccountUserService{

	@Autowired
	private AccountUserDao accountUserDao;
	
	@Override
	public int save(UAccountUser accountUser) {
		return accountUserDao.insert(accountUser);
	}

	@Override
	public int update(UAccountUser entity) {
		return accountUserDao.update(entity);
	}

	@Override
	public int deleteById(Long id) {
		return accountUserDao.deleteById(id);
	}

	@Override
	public int deleteByIds(String ids) {
		return accountUserDao.deleteByIds(ids);
	}

	@Override
	public UAccountUser getById(Long id) {
		return accountUserDao.selectById(id);
	}

	@Override
	public List<UAccountUser> getList(UAccountUser entity) {
		return accountUserDao.selectList(entity);
	}

	@Override
	public List<UAccountUser> getList(Map<String, Object> params) {
		return accountUserDao.selectList(params);
	}

}
